<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common/base_body_header.jsp" %>
<%@include file="../common/navbar.jsp" %>
<%@include file="../common/page_content_pre.jsp" %>
<div class="page-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="widget-box">
                <div class="widget-header">
                    <h4>添加二维码</h4>
                </div>

                <div class="widget-body">
                    <div class="widget-main no-padding">
                        <form class="form-horizontal" modelAttribute="course"
                              action="${GLOBAL.basePath}/Emily/QRCode/save" method="post" id="QRCodeForm">

                            <fieldset>
                                <div class="form-group">
                                    <input id="imageUrl" name="imageUrl" type="hidden">
                                    <label class="col-sm-3 control-label">个人二维码：</label>

                                    <div class="col-sm-6">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <div id="uploadImage">
                                                    <p>
                                                        <button type="button" class="btn btn-sm btn-info">上传图片</button>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="layui-inline" id="upload_preview"></div>
                                        </div>

                                        <div class="layui-form-item layui-hide" id="upload_progress">
                                            <label class="layui-form-label"></label>

                                            <div class="layui-input-inline" style="width:21%;">
                                                <div class="layui-progress" lay-showpercent="true"
                                                     lay-filter="upload_progress">
                                                    <div class="layui-progress-bar layui-bg-blue"
                                                         lay-percent="0%"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                            <fieldset>
                                <div class="form-group">
                                    <input id="imageUrl1" name="imageUrl1" type="hidden">
                                    <label class="col-sm-3 control-label">付款码：</label>

                                    <div class="col-sm-6">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <div id="uploadImage1">
                                                    <p>
                                                        <button type="button" class="btn btn-sm btn-info">上传图片</button>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="layui-inline" id="upload_preview1"></div>
                                        </div>

                                        <div class="layui-form-item layui-hide" id="upload_progress1">
                                            <label class="layui-form-label"></label>

                                            <div class="layui-input-inline" style="width:21%;">
                                                <div class="layui-progress" lay-showpercent="true"
                                                     lay-filter="upload_progress">
                                                    <div class="layui-progress-bar layui-bg-blue"
                                                         lay-percent="0%"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                            <fieldset>
                                <div class="form-actions center">
                                    <button type="button" class="btn btn-sm btn-grey" id="go_back_btn">
                                        返回
                                        <i class="icon-reply icon-on-right bigger-110"></i>
                                    </button>
                                    <button type="submit" class="btn btn-sm btn-success" id="save_btn">
                                        保存
                                        <i class="icon-save icon-on-right bigger-110"></i>
                                    </button>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%@include file="../common/page_content_suf.jsp" %>
<%@include file="../common/script.jsp" %>
<%@include file="../common/css.jsp" %>
</script>
